package com.miao.activity.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.miao.commonn.utils.PageUtils;
import com.miao.commonn.utils.Query;

import com.miao.activity.dao.MiaoActivityDao;
import com.miao.activity.entity.MiaoActivityEntity;
import com.miao.activity.service.MiaoActivityService;


@Service("miaoActivityService")
public class MiaoActivityServiceImpl extends ServiceImpl<MiaoActivityDao, MiaoActivityEntity> implements MiaoActivityService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MiaoActivityEntity> page = this.page(
                new Query<MiaoActivityEntity>().getPage(params),
                new QueryWrapper<MiaoActivityEntity>()
        );

        return new PageUtils(page);
    }

}